
// 自动生成模板UniversityStudentScore
package example
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 学成绩 结构体  UniversityStudentScore
type UniversityStudentScore struct {
    global.GVA_MODEL
    StudentId  *string `json:"studentId" form:"studentId" gorm:"column:student_id;comment:学生唯一标识;" binding:"required"`  //学生ID
    CourseId  *string `json:"courseId" form:"courseId" gorm:"column:course_id;comment:课程唯一标识;" binding:"required"`  //课程ID
    Score  *int `json:"score" form:"score" gorm:"column:score;comment:学生课程成绩;" binding:"required"`  //分数
    Grade  *string `json:"grade" form:"grade" gorm:"column:grade;comment:成绩等级;"`  //等级
    Term  *string `json:"term" form:"term" gorm:"default:2025;column:term;comment:所属学期;" binding:"required"`  //学期
}


// TableName 学成绩 UniversityStudentScore自定义表名 university_student_score
func (UniversityStudentScore) TableName() string {
    return "university_student_score"
}





